Skip to content

Add minimal Huawei Hagrid WSP support#1408

Merged
oliexdev merged 2 commits into
oliexdev:masterfrom
shisoratsu:huawei-hagrid-pr1-minimal-wsp
Jul 18, 2026
Merged

Add minimal Huawei Hagrid WSP support#1408
oliexdev merged 2 commits into
oliexdev:masterfrom
shisoratsu:huawei-hagrid-pr1-minimal-wsp

Conversation

@shisoratsu

Copy link
Copy Markdown
Contributor

Summary

  • add a minimal Huawei/Honor Hagrid WSP scale handler and product detection
  • implement WSP framing, CRC handling, authentication helpers, and explicit CAK/C1/C2 driver settings
  • support conservative probe-only behavior when secrets are not configured
  • parse basic realtime/history/standard measurement payloads without adding destructive scale-user commands

Scope

This is the first slice of a stacked series. It intentionally does not include segmental impedance storage, scale-side user inventory/actions, or optional body-metric derivation. Those are split into follow-up branches to keep this review focused on the minimal protocol support.

Verification

  • JAVA_HOME=/Library/Java/JavaVirtualMachines/temurin-24.jdk/Contents/Home ./gradlew testDebugUnitTest --tests "*HuaweiHagrid*" --tests "*MigrationTest*" --tests "*ImportExportUseCasesTest*"

Notes

  • CAK/C1/C2 values must be provided explicitly by the user in driver settings. This code does not contain Huawei Health key extraction, Frida, APK, root, or native white-box logic.
  • upstream is configured read-only locally; this PR is opened from the shisoratsu fork.

* explicitly configured settings here; private Huawei Health extraction tools
* are outside this boundary.
*/
interface HuaweiHagridSecretProvider {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add this into HuaweiHagridWspLib.kt so we have only one lib file.

@oliexdev

Copy link
Copy Markdown
Owner

Thanks for your awesome PR 👍 , does this version already works?

@oliexdev
oliexdev marked this pull request as ready for review July 18, 2026 14:03
@oliexdev
oliexdev merged commit c01f7ea into oliexdev:master Jul 18, 2026
@oliexdev

Copy link
Copy Markdown
Owner

I have moved the SecretProvider to the lib and merged your PR. Thanks for your PR 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants